package com.kotlin.heimaplayer.adapter

import android.content.Context
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.kotlin.heimaplayer.model.HomeItemBean
import com.kotlin.heimaplayer.widget.HomeItemView
import com.kotlin.heimaplayer.widget.LoadMoreView

class HomeAdapter : BaseListAdapter<HomeItemBean, HomeItemView>() {
    override fun getItemView(context: Context?): HomeItemView {
        return HomeItemView(context)
    }

    override fun refreshView(itemView: HomeItemView, data: HomeItemBean?) {
        data?.let {
            itemView.setData(data)
        }

    }

}